package com.itheima.d02_thread_create;

/**
 * 1.定义线程任务类，实现Runnable接口
 */
public class MyRunnable  implements Runnable{

    //2.重写run方法，设置线程做的事情/任务
    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println("子线程：下载学习资料... ..."+i);
        }
    }
}
